package com.ruoyi.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出库单管理对象 erp_outbound_order
 * 
 * @author zhp
 * @date 2025-08-19
 */
public class ErpOutboundOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 出库单号 */
    private String orderNo;

    /** 出库类型(1:销售出库,2:生产领料,3:报废出库,4:调拨出库等) */
    private Long orderType;

    /** 关联单号 */
    private String relatedOrderNo;

    /** 源仓库ID */
    private Long warehouseId;

    /** 客户ID */
    private Long customerId;

    /** 状态(0:待审核,1:已审核,2:部分出库,3:已完成,4:已取消) */
    private Long status;

    /** 计划出库总数 */
    private BigDecimal totalQuantity;

    /** 实际出库总数 */
    private BigDecimal actualQuantity;

    /** 操作人ID */
    private Long operatorId;

    /** 审核人ID */
    private Long checkerId;

    /** 审核时间 */
    private Date checkTime;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setOrderType(Long orderType) 
    {
        this.orderType = orderType;
    }

    public Long getOrderType() 
    {
        return orderType;
    }

    public void setRelatedOrderNo(String relatedOrderNo) 
    {
        this.relatedOrderNo = relatedOrderNo;
    }

    public String getRelatedOrderNo() 
    {
        return relatedOrderNo;
    }

    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }

    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setTotalQuantity(BigDecimal totalQuantity) 
    {
        this.totalQuantity = totalQuantity;
    }

    public BigDecimal getTotalQuantity() 
    {
        return totalQuantity;
    }

    public void setActualQuantity(BigDecimal actualQuantity) 
    {
        this.actualQuantity = actualQuantity;
    }

    public BigDecimal getActualQuantity() 
    {
        return actualQuantity;
    }

    public void setOperatorId(Long operatorId) 
    {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() 
    {
        return operatorId;
    }

    public void setCheckerId(Long checkerId) 
    {
        this.checkerId = checkerId;
    }

    public Long getCheckerId() 
    {
        return checkerId;
    }

    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("orderType", getOrderType())
            .append("relatedOrderNo", getRelatedOrderNo())
            .append("warehouseId", getWarehouseId())
            .append("customerId", getCustomerId())
            .append("status", getStatus())
            .append("totalQuantity", getTotalQuantity())
            .append("actualQuantity", getActualQuantity())
            .append("operatorId", getOperatorId())
            .append("checkerId", getCheckerId())
            .append("checkTime", getCheckTime())
            .append("remark", getRemark())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
